package com.svse.services.impl;

import com.svse.dao.UserInfoDao;
import com.svse.dao.UserInfoMapper;
import com.svse.entity.UserInfo;
import com.svse.services.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李宇航
 * @since 2020-01-15
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;
    @Resource
    private UserInfoDao userInfoDao;

    @Override
    public UserInfo findEntityByUserName(String username) {
       // return userInfoMapper.findEntityByUserName(username);
        return userInfoDao.findByUsername(username);
    }
}
